package com.local.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Table(name = "crossing_to_equipment")
public class CrossingToEquipment {
    @NotEmpty
    @Length(min=1,max=32)
    @Column(name = "crossing_uuid")
    private String crossingUuid;

    @NotEmpty
    @Length(min=1,max=32)
    @Column(name = "equipment_uuid")
    private String equipmentUuid;

    @Column(name = "status_")
    private Integer status;

    public String getCrossingUuid() {
        return crossingUuid;
    }

    public void setCrossingUuid(String crossingUuid) {
        this.crossingUuid = crossingUuid == null ? null : crossingUuid.trim();
    }

    public String getEquipmentUuid() {
        return equipmentUuid;
    }

    public void setEquipmentUuid(String equipmentUuid) {
        this.equipmentUuid = equipmentUuid == null ? null : equipmentUuid.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}